package com.daoyintech.entity.weixin.request;


import com.daoyintech.utils.XStreamUtil;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;

import java.io.Serializable;

/**
 * Created by xuzhaolin on 15/12/28.
 */

@XStreamAlias("xml")
public class WeixinHongBaoRequest implements Serializable{

    @XStreamAlias("sign")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String sign;

    @XStreamAlias("mch_billno")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String mch_billno;

    @XStreamAlias("mch_id")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String mch_id;

    @XStreamAlias("wxappid")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String wxappid;

    @XStreamAlias("send_name")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String send_name;

    @XStreamAlias("hb_type")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String hb_type;

    @XStreamAlias("auth_mchid")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String auth_mchid;

    @XStreamAlias("auth_appid")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String auth_appid;

    @XStreamAlias("total_amount")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String total_amount;

    @XStreamAlias("total_num")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String total_num;

    @XStreamAlias("wishing")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String wishing;

    @XStreamAlias("act_name")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String act_name;

    @XStreamAlias("remark")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String remark;

    @XStreamAlias("risk_cntl")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String risk_cntl;

    @XStreamAlias("nonce_str")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String nonce_str;

    @XStreamAlias("amt_type")
    @XStreamConverter(value=XStreamCDataConverter.class)
    private String amt_type;

    public String getSign() {
        return sign;
    }

   
    public void setSign(String sign) {
        this.sign = sign;
    }

   
    public String getMch_billno() {
        return mch_billno;
    }

   
    public void setMch_billno(String mch_billno) {
        this.mch_billno = mch_billno;
    }

   
    public String getMch_id() {
        return mch_id;
    }

   
    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

   
    public String getWxappid() {
        return wxappid;
    }

   
    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

   
    public String getSend_name() {
        return send_name;
    }

   
    public void setSend_name(String send_name) {
        this.send_name = send_name;
    }

   
    public String getHb_type() {
        return hb_type;
    }

   
    public void setHb_type(String hb_type) {
        this.hb_type = hb_type;
    }

   
    public String getAuth_mchid() {
        return auth_mchid;
    }
    
    public void setAuth_mchid(String auth_mchid) {
        this.auth_mchid = auth_mchid;
    }

   
    public String getAuth_appid() {
        return auth_appid;
    }

   
    public void setAuth_appid(String auth_appid) {
        this.auth_appid = auth_appid;
    }

   
    public String getTotal_num() {
        return total_num;
    }

   
    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

   
    public String getTotal_amount() {
        return total_amount;
    }

   
    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

   
    public String getAmt_type() {
        return amt_type;
    }

   
    public void setAmt_type(String amt_type) {
        this.amt_type = amt_type;
    }

   
    public String getWishing() {
        return wishing;
    }


   
    public void setWishing(String wishing) {
        this.wishing = wishing;
    }

   
    public String getAct_name() {
        return act_name;
    }

   
    public void setAct_name(String act_name) {
        this.act_name = act_name;
    }

   
    public String getRemark() {
        return remark;
    }

   
    public void setRemark(String remark) {
        this.remark = remark;
    }

   
    public String getRisk_cntl() {
        return risk_cntl;
    }

   
    public void setRisk_cntl(String risk_cntl) {
        this.risk_cntl = risk_cntl;
    }

   
    public String getNonce_str() {
        return nonce_str;
    }

   
    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String toXml() {
        XStream xstream = XStreamUtil.getInstance();
        xstream.processAnnotations(WeixinHongBaoRequest.class);
        return xstream.toXML(this);
//        return XStreamTransformer.toXml((Class)this.getClass(),this);
    }
}
